package com.wing.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.product.model.entity.CustomersInfoEntity;
import com.wing.product.model.entity.WarehouseMoveInventory;
import com.wing.product.model.response.MoveInventoryVO;
import com.wing.user.model.entity.SelContactInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WarehouseMoveInventoryDao extends BaseMapper<WarehouseMoveInventory> {

    List<MoveInventoryVO> list4app(@Param("page") Page<WarehouseMoveInventory> pg, @Param("params") Map<String,Object> paramMap);
    Map findUnit();
    Map  findMark(String markName);
    Map findVariety(String varietyName);
    Map findProducer(String producerName);
    Map findCustomer(String customerName);
    Map findSpace(String spaceCode);
    List<CustomersInfoEntity> findAllCustomer();

    List<SelContactInfo> findByCustomerId(Long customerId);
}
